package concurrent;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
 * 线程数为10时，ConcurrentHashMap性能提升不明显线程数50或100时，
 * 增加删除元素带来一倍左右的性能提升，查找元素10倍左右性能提升线程数增长，性能没有出现下降
 *
 */
public class ConcurrentHashMapDemo {

	public static void main(String[] args) {
		Map<Long,Object> map=new ConcurrentHashMap<Long, Object>();
		map=new HashMap<Long,Object>();
		System.out.println("good".hashCode());
		System.out.println("good".hashCode());
		System.out.println("better".hashCode());
	}

}
